<?php
$this->breadcrumbs=array(
	'Detail Perjalanan Travels'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List DetailPerjalananTravel', 'url'=>array('index')),
	array('label'=>'Create DetailPerjalananTravel', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('detail-perjalanan-travel-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manajemen Data Perjalanan Travel</h1>

<p><?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
</p>
<div class="search-form" style="display:none">
  <?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'detail-perjalanan-travel-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'ID_DETAIL_TRAVEL',
		'ID_KOTA',
		'KOT_ID_KOTA',
		//'ID_TRAVEL',
		'TGL_BERANGKAT',
		/*
		'TGL_PULANG',
		'JAM_BERANGKAT',
		'JAM_PULANG',
		'HARGA_TIKET',
		'DURASI_TRAVEL',
		'KELAS_TRAVEL',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
